package com.yuteng.comment.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 评论表(video_comment)实体类
 *
 * @author 余腾
 * @since 2021-10-27 16:30:07
 * @description 用户喜欢的视频的一些信息
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("video_comment")
public class VideoComment extends Model<VideoComment> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ID_WORKER)
	private Long id;
    /**
     * 评论者的id
     */
    private Long userId;
    /**
     * 视频id
     */
    private Long videoId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 点赞数

    private Integer thumb;*/
    /**
     * 父id评论的叠加时用
     */
    private Long parentId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改日期

    @TableField(update = "now()")
	private Date updateTime;*/

    @TableField(exist = false)
    private List<VideoComment> children;
}